<include file="public@header" />
</head>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Record/index')}">所有原因</a></li>
        <li class="active"><a href="{:url('Record/add')}">原因添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Record/addPost')}">
        <div class="form-group">
            <label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>原因:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="name" name="name">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>

<script>
    $(function (){
        $('#input-city').on('change',function(){
            var cityId = $(this).val();
            $.ajax({
                url:"{:url('school/getArea')}",
                type: "POST",
                data:{cityId,cityId},
                success:function(res){
                    $('#input-area').html(res);
                    console.log(res);
                }
            })
        })
    })
</script>
</html>






















